import Context from './context'
import { useContext } from 'react'

const Child = () => {
  // useContext 获得Context中的数据
  // useContext(上下文对象)
  const count = useContext(Context)

  return <div>子组件：{count}</div>
}

export default Child